package com.qbq.monster;

import java.util.ArrayList;

/**
 * @description:
 * @author: QiaoBiQing
 * @date: Created in 2020/6/10 22:32
 * @version: 1.0
 * @modified By:
 */
public abstract class Creature {
    /**
     * @description:
     * @author: QiaoBiQing
     * @date: Created in 2020/4/29 10:34
     * @version: 1.0
     * @modified By:
     */
        private String id;
        private String description;
        private int HPValue;
        private Weapon currentWeapon;//一种武器
        private ArrayList<Weapon> weapons = new ArrayList<>();//多种武器



        public abstract void useAritical(Weapon weapon, Creature targetCreature);


        public Creature(String id, String description, int HPValue, Weapon currentWeapon, ArrayList<Weapon> weapons) {
            this.id = id;
            this.description = description;
            this.HPValue = HPValue;
            this.currentWeapon = currentWeapon;
            this.weapons = weapons;
        }

        public Creature() {
        }

        public Weapon getCurrentWeapon() {
            return currentWeapon;
        }

        public Weapon getCurrentWeapon(WeaponSword weaponSword) {
            return currentWeapon;
        }

        public void setCurrentWeapon(Weapon currentWeapon) {
            this.currentWeapon = currentWeapon;
        }

        public ArrayList<Weapon> getWeapons() {
            return weapons;
        }

        public void setWeapons(ArrayList<Weapon> weapons) {
            this.weapons = weapons;
        }

        public int getHPValue() {
            return HPValue;
        }

        public void setHPValue(int HPValue) {
            this.HPValue = HPValue;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }
    }


